package com.gdpu.project.dao;

import java.util.Date;
import java.util.List;

import com.gdpu.page.vo.QueryResult;
import com.gdpu.project.vo.CgConference;

public interface CgConferenceDao {
	public abstract int count(String teacherId);

	public abstract List<CgConference> nfindByProperty(String propertyName,String value,Date begin,Date end);
	/**
	 * 分页查询学术会议
	 * @param propertyName
	 * @param value
	 * @param begin
	 * @param end
	 * @param firstindex
	 * @param maxresult
	 * @return
	 */
	public QueryResult<CgConference> nfindByProperty(String propertyName,List<String> value,Date begin,Date end,int firstindex,int maxresult);
	
	public abstract void save(CgConference transientInstance);

	public abstract void delete(CgConference persistentInstance);

	public abstract CgConference findById(java.lang.Integer id);

	public abstract List<CgConference> findByExample(CgConference instance);

	public abstract QueryResult<CgConference> findByProperty(String propertyName,
			Object value,int firstindex,int maxresult);
	/**
	 * 根据教师id分页查Conference列表
	 * @param conferenceId
	 * @param firstindex
	 * @param maxresult
	 * @return
	 */
	public abstract QueryResult<CgConference> findByConferenceId(Object conferenceId,int firstindex,int maxresult);
	/**
	 * 根据教师id一次性查出Conference列表
	 * @param teacherId
	 * @return
	 */
	public abstract QueryResult<CgConference> findByTeacherId(Object teacherId);

	public abstract QueryResult<CgConference> findByTeacherId(Object teacherId,int firstindex,int maxresult);
	
	public abstract QueryResult<CgConference> findByConferenceName(
			Object conferenceName,int firstindex,int maxresult);

	public abstract QueryResult<CgConference> findByConferenceTheme(
			Object conferenceTheme,int firstindex,int maxresult);

	public abstract QueryResult<CgConference> findByKeYanFen(Object keYanFen,int firstindex,int maxresult);

	public abstract QueryResult<CgConference> findByComment(Object comment,int firstindex,int maxresult);

	public QueryResult<CgConference> findAll(int firstindex,int maxresult);

	public abstract CgConference merge(CgConference detachedInstance);

	public abstract void attachDirty(CgConference instance);

	public abstract void attachClean(CgConference instance);

}